[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Pos Returns Position of Substring within String
Pos(Sub,Source : <string>) : Integer; [TP]
Returns the starting location of the substring Sub within the string
Source. If Sub is not found in Source, the returned value is 0.
Sub,Source Any string value (constant, variable, function call or
expression).
Note: Note that Sub can be a string of length 1 (i.e., a
character).
-------------------------------- Example ---------------------------------
Name := 'Rufus P. Jones';
I := Pos('us',Name); { I gets assigned 4 }
See Also:
Copy
Delete
Insert
Concat
Length
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson